package EjemplosClasesComunes;

import java.util.Date;

public class ClaseDate {
	public static void main(String[] args) {
		
		//Deprecated --> Usar Calendar
		Date d = new Date(111, 10, 5);
		Date d2 = new Date();
		
		System.out.println(d2.getYear());
		System.out.println(d2.getDate());
		System.out.println(d2.getDay());
		System.out.println(d2.getMonth());
		
		System.out.println(d.after(d2));
		System.out.println(d.before(d2));
	}

}
